<?php 
/* SVN FILE: $Id$ */
/* Reserva Test cases generated on: 2009-10-22 16:28:21 : 1256228901*/
App::import('Model', 'Reserva');

class ReservaTestCase extends CakeTestCase {
	var $Reserva = null;
	var $fixtures = array('app.reserva', 'app.cliente', 'app.quarto');

	function startTest() {
		$this->Reserva =& ClassRegistry::init('Reserva');
	}

	function testReservaInstance() {
		$this->assertTrue(is_a($this->Reserva, 'Reserva'));
	}

	function testReservaFind() {
		$this->Reserva->recursive = -1;
		$results = $this->Reserva->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Reserva' => array(
			'id'  => 1,
			'criacao'  => '2009-10-22 16:28:21',
			'data_inicio'  => '2009-10-22 16:28:21',
			'data_fim'  => '2009-10-22 16:28:21',
			'percentual_pago'  => '2009-10-22 16:28:21',
			'valor_na_data'  => '2009-10-22 16:28:21',
			'cliente_id'  => 1,
			'quarto_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>